
package com.dhwl.hsh.lib.core.mvp;

import com.dhwl.hsh.lib.bean.resp.OrderListResponse;
import com.dhwl.hsh.lib.core.HshException;

import java.util.List;

/**
 *  Description：MvpView
 * <p>
 * Base interface that any class that wants to act as a View in the MVP (Model View Presenter)
 * pattern must implement. Generally this interface will be extended by a more specific interface
 * that then usually will be implemented by an Activity or Fragment.
 * <p>
 * @author Derek.Kidd
 * @time 2016/4/18 11:21
 */
public interface MvpView {
    /**
     * 业务数据发生错误
     *
     * @param e e
     */
    void onFailure(HshException e);

    /**
     * 请求成功
     *
     * @param object
     */
    void onSuccess(Object object);
}
